
.slideshow {
  position: relative;
  width: 600px;  /* 缩小宽度，给待办列表留空间 */
  height: 400px; 
  margin: 50px 20px;
  float: left;   /* 左浮动，与待办列表并排 */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px 16px;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  background: rgba(0,0,0,0.3);
  border: none;
  user-select: none;
  transition: background 0.3s;
}
.prev:hover, .next:hover {
  background: rgba(0,0,0,0.6);
}
.prev { left: 0; }
.next { right: 0; }
.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 6px;
}
.dots li {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.dots li.active {
  background: #ff6347;
}

/* 待办列表样式 */
.todo-container {
  overflow: hidden; /* 清除浮动，与轮播图并排 */
  margin: 50px 0;
  padding: 20px;
}
.todo-input {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.todo-input input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.todo-input button {
  padding: 8px 16px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}
.todo-input button:hover {
  background: #45a049;
}
#todoList {
  list-style: none;
  padding: 0;
}
#todoList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 4px;
  transition: background 0.3s;
}
#todoList li:hover {
  background: #f8f8f8;
}
#todoList li span {
  flex: 1;
  margin: 0 10px;
}
#todoList li button {
  background: #ff4444;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}
#todoList li button:hover {
  background: #e53935;
}